<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>	
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<%
		// 在session中缓存一个值
		session.setAttribute("userName", "张三");
		// 使用out对象将session的内容输出
		out.println(session.getAttribute("userName"));
	%>
	<br>
	<c:out value="${sessionScope.userName }"></c:out>
</body>
</html>